package model.symbol;

import model.code.line.NameLine;
import model.code.line.SingleLine;
import model.code.CodeFileChunk;
import model.code.Function;

/**
 * This class can be used for line labels in any language.
 *
 * @author Neil Dickson
 */
public class LineLabel implements Symbol {
	private final Function parent;
	private final long	id;
	private NameLine	name;
	private SingleLine	description;
	public LineLabel(char[] name,char[] description,Function parent) {
		id = Scope.getUniqueID();
		this.name = new NameLine(name,this);
		this.description = new SingleLine(description,null, CodeFileChunk.LOCATION_NOWHERE);
		this.parent = parent;
	}

	public NameLine getName() {
		return name;
	}

	public Function getParent() {
		return parent;
	}

	public SingleLine getDescription() {
		return description;
	}

	public long getID() {
		return id;
	}

	public String toString() {
		return name.toString();
	}
}
